<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
%>
<link href="<%=path %>/content/images/admin/skin.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css">
	body {
		margin:0px;
		width: 100%;
		background-color: #EEF2FB;
	}
</style>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="<%=path %>/content/images/admin/mail_leftbg.gif"><img src="<%=path %>/content/images/admin/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="<%=path %>/content/images/admin/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">欢迎界面</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="<%=path %>/content/images/admin/mail_rightbg.gif"><img src="<%=path %>/content/images/admin/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="<%=path %>/content/images/admin/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="2" valign="top">&nbsp;</td>
        <td>&nbsp;</td>
        <td valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td width="7%">&nbsp;</td>
        <td width="100%" valign="top">
        	<div class="goods">
			<h2>${goods.name }${goods.state == 1? "(可交换)" :"(不可交换)" }<a href="<%=path %>/goods/deleteGoods?id=${goods.id}&isAdmin=1">删除该物品</a></h2>
			<p class="desc">${goods.content }   <c:if test="${goods.owner.id == student.id}"><a onclick="ajaxload(this);return false;" href="<%=path %>/goods/deleteGoods?id=${goods.id}">注销该货品</a></c:if> </p>
			<p>货品价钱：${goods.value } 元</p>
			<p>货品数量：${goods.quantity }</p>
			<p>拥有者 ：${goods.owner.name }</p>
			<c:choose>
				<c:when test="${goods.image != null}">
				<img class="goodspic" src="<%=path %>/${goods.image.minFileUrl }"/>
				</c:when>
			</c:choose>
			
			<c:if test="${goodslist != null and goods.owner.id == student.id}">
					这些货品可能对你有用哦~~~~~~~~~^o^~~~~~~~~<br />
					-----------------------------------<br />
					<c:forEach items="${goodslist}" var="goodslike">
							货品名称：<a href="<%=path%>/goods/viewGoods?id=${goodslike.id }">${goodslike.name}</a><br />
							货品描述：${goodslike.content }	<br />
							货品状态：${goodslike.state == 1? "可交换" :"正常" } <br />
							货品价钱：${goodslike.value } <br />
							货品数量：${goodslike.quantity } <br />
							拥有者 ：${goodslike.owner.name } <br />
							-----------------------------------<br />
					</c:forEach>
			</c:if>
			</div>
        </td>
      </tr>
      <tr>
        <td height="40" colspan="4">
        <table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
          <tr>
            <td></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td width="2%">&nbsp;</td>
        <td width="51%" class="left_txt"><img src="<%=path %>/content/images/admin/icon-mail2.gif" width="16" height="11"> 客户服务邮箱：76212057@qq.com<br>
              <img src="<%=path %>/content/images/admin/icon-phone.gif" width="17" height="14"> 官方网站：http://www.fuchal.com</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
    <td background="<%=path %>/content/images/admin/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="<%=path %>/content/images/admin/mail_leftbg.gif"><img src="<%=path %>/content/images/admin/buttom_left2.gif" width="17" height="17" /></td>
    <td background="<%=path %>/content/images/admin/buttom_bgs.gif"><img src="<%=path %>/content/images/admin/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="<%=path %>/content/images/admin/mail_rightbg.gif"><img src="<%=path %>/content/images/admin/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>
